package com.spzx.channel.domain.vo;

import com.spzx.product.domain.Product;
import com.spzx.product.domain.ProductSku;
import com.spzx.product.domain.SkuStockVo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;
import java.util.Map;

@Data
@Schema(description = "商品详情数据模型")
public class ItemVO {
    @Schema(description = "sku详情")
    private ProductSku productSku;
    @Schema(description = "spu详情")
    private Product product;
    @Schema(description = "sku价格详情")
    private SkuPriceVO skuPrice;
    @Schema(description = "spu轮播图列表")
    private List<String> sliderUrlList;
    @Schema(description = "spu详情图列表")
    //detailsImageUrlList
    private List<String> detailsImageUrlList;
    //'[{"key":"颜色","valueList":["白色","红色","黑色"]},{"key":"内存","valueList":["8G","18G"]}]'
    // spu表中存储的是字符串
    @Schema(description = "spu规格值列表：spu下sku列表可以选择的规则值")
    private List<SpecValueVO> specValueList;
    @Schema(description = "sku库存")
    private SkuStockVo skuStockVo;
    //{"黑色 + 18G": 6, "红色 + 18G": 4}
    // 一个sku的规格值 映射 该sku的id值 ， sku列表属于同一个spu
    @Schema(description = "spu下所有的sku的规格值 和skuid映射的集合")
    private Map<String,String> skuSpecValueMap;


}
